package com.lk.satokendemo.service.impl;

import com.lk.satokendemo.entity.User;
import com.lk.satokendemo.mapper.UserMapper;
import com.lk.satokendemo.service.UserService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User Login(User user) {
        User u = userMapper.Login(user);
        return u;
    }

    @Override
    public Integer Register(User user) {
        Integer row = userMapper.Register(user);
        return row;
    }
}
